package com.gpf.common;

import org.apache.shiro.SecurityUtils;

import com.gpf.pojo.SysUser;

public class ShiroUtils {
	
	public static String getUsername() {
		return getUser().getUsername();
	}
	public static SysUser getUser() {
		return (SysUser)SecurityUtils.getSubject().getPrincipal();
	}

}
